package com.design.command;

/**
 * @author leali
 * @title: AbstractCommand
 * @projectName design
 * @description: 抽象命令类
 * @date 2022/1/3 17:14
 */
public abstract class AbstractCommand {
    /**
     * 声明命令执行方法execute()
     *
     * @param value v
     * @return result
     */
    public abstract int execute(int value);

    /**
     * 声明撤销方法undo()
     *
     * @return result
     */
    public abstract int undo();
}
